package com.express.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Verification {

  static String noTokenStr = "/user/login;/user/logout;/permission/;/car;/cust/;/login/;/views/;/order/;/test/;/payment/;/wechat/;/message/;/views/app/;/appointment/;/v2/";
  
  public static boolean noToken(String uri)
  {
    String[] strArr = noTokenStr.split(";");
    for (int i = 0; i < strArr.length; i++)
    {
      Matcher matcher = Pattern.compile(strArr[i]).matcher(uri);
      if (matcher.find())
      {
        System.out.println("不需要token");
        return true;
      }
    }
    return false;
  }
}